package com.china.juju.entity;


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="juju_signatures"
    ,catalog="zutuan_prot"
)
public class JujuSignatures  implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    public static final String ENTITY_NAME = "com.china.juju.entity.JujuSignatures";
	public static final String TABLE_NAME="juju_signatures";

    public static final String PK_Field = "id"; 
    public static final String PK_Method = "getId";  
	
	public static final String P_id = "id"; 
	public static final String P_url = "url"; 
	public static final String P_signtext = "signtext"; 
	public static final String P_signtype = "signtype"; 
	public static final String P_createdAt = "createdAt"; 
	public static final String P_updatedAt = "updatedAt"; 

     private String id;
     private String url;
     private String signtext;
     private String signtype;
     private Date createdAt;
     private Date updatedAt;

    public JujuSignatures() {
    }
	
    public JujuSignatures(String id) {
        this.id = id;
    }
    public JujuSignatures(String id, String url, String signtext, String signtype, Date createdAt, Date updatedAt) {
        this.id = id;
        this.url = url;
        this.signtext = signtext;
        this.signtype = signtype;
        this.createdAt = createdAt;
        this.updatedAt = updatedAt;
    }
   
    @Id 
    @GeneratedValue( generator="paymentableGenerator")  
    @GenericGenerator(name="paymentableGenerator", strategy="uuid")  
    
    @Column(name="ID", unique=true, nullable=false, length=36)
    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Column(name="url", length=512)
    public String getUrl() {
        return this.url;
    }
    
    public void setUrl(String url) {
        this.url = url;
    }
    
    @Column(name="signtext", length=1024)
    public String getSigntext() {
        return this.signtext;
    }
    
    public void setSigntext(String signtext) {
        this.signtext = signtext;
    }
    
    @Column(name="signtype", length=20)
    public String getSigntype() {
        return this.signtype;
    }
    
    public void setSigntype(String signtype) {
        this.signtype = signtype;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="created_at", length=19)
    public Date getCreatedAt() {
        return this.createdAt;
    }
    
    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="updated_at", length=19)
    public Date getUpdatedAt() {
        return this.updatedAt;
    }
    
    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }



    @Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}


